<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('Partner_id')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-partner_id" data-source="fastflow/bill/cooperation/index" data-field="partner" class="form-control selectpage" name="row[partner_id]" type="text" value="{$row.partner_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Year')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-year" class="form-control datetimepicker" data-date-format="YYYY" data-use-current="true" name="row[year]" type="text" value="{$row.year}">
        </div>
    </div>

    <!-- 判断项目流程是否为流程中-->
    <?php if($row['status'] > 0):?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('That_year')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-that_year" class="form-control " rows="5" name="row[that_year]" cols="50">{$row.that_year|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Next_step')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-next_step" class="form-control" rows="5" name="row[next_step]" cols="50">{$row.next_step|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Other')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-other" class="form-control" rows="5" name="row[other]" cols="50">{$row.other|htmlentities}</textarea>
        </div>
    </div>
    <?php endif;?>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Examinefile')}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input id="c-examinefile" class="form-control" size="50" name="row[examinefile]" type="text" value="{$row.examinefile|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-examinefile" class="btn btn-danger faupload" data-input-id="c-examinefile" data-multiple="false" data-preview-id="p-examinefile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-examinefile" class="btn btn-primary fachoose" data-input-id="c-examinefile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-examinefile"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-examinefile"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Examinestatus')}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="radio">
            {foreach name="examinestatusList" item="vo"}
            <label for="row[examineStatus]-{$key}"><input id="row[examineStatus]-{$key}" name="row[examineStatus]" type="radio" value="{$key}" {in name="key" value="$row.examineStatus"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Opinion')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-opinion" class="form-control " rows="5" name="row[opinion]" cols="50">{$row.opinion|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-7">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
